package com.pengshun.modules.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商户认证,资料提交完毕后status设置为DOING，不可再编辑资料
 * 未通过审核status设置为INVALID，可以再次编辑资料提交审核
 */

@Getter
@Setter
@Entity
@Table(name = "ps_freight_settlement")
public class FreightSettlement implements Serializable {

    private static final long serialVersionUID = 6848628578484886700L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long freightSettlementId;
    private String settlementNo;
    private Long transportTakeCarriageId;
    private Long transportId;
    private Long merchantId;
    private Long orderId;
    private Long applyUserId;
    private Long gatheringUserId;
    private Long payUserId;
    private String transportTakeNo;
    private BigDecimal settlementAmount;
    private BigDecimal mineSendNum;
    private BigDecimal realNum;
    private BigDecimal diffNum;
    private BigDecimal diffPrice;
    private BigDecimal price;
    private BigDecimal freight;
    private BigDecimal loadFee;
    private BigDecimal unloadFee;
    private BigDecimal poundsFee;
    private BigDecimal otherFee;
    private String remark;
    private Integer status;
    private Integer settlementType;
    private Date applyDate;
    private Date cleanDate;
    private Date rejectTime;
    private String casue;
    private String merchantName;
    private String applyUserName;
    private String applyUserPhone;
    @ApiModelProperty(value = "0正常 1异常订单")
    private String isAbnormal;
    @ApiModelProperty(value = "1待处理，2处理中，3处理成功，处理失败")
    private String abnormalStatus;
    @ApiModelProperty(value = "油卡比")
    private Integer oilProportion;
    @ApiModelProperty(value = "现金比")
    private Integer cashProportion;
    private Integer checkStatus;
    private BigDecimal  cashFee;
    private BigDecimal  oilCardFee;

}


